package com.szqhyxj.youxiangju.biz.core;

import com.szqhyxj.youxiangju.sys.BaseResult;
import com.szqhyxj.youxiangju.sys.RetrofitFacade;

import io.reactivex.Observable;
import retrofit2.http.POST;

public class UserInfoModel {


    public interface UserInfoService {
        @POST("user/info/detail")
        Observable<BaseResult<UserInfo>> get();
    }

    public static Observable<BaseResult<UserInfo>> loadUserInfo () {
        return RetrofitFacade.Companion.getRetrofit().create(UserInfoService.class).get();
    }
}